package com.example.xcspringboot_one.service;

import com.example.xcspringboot_one.pojo.Book;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author xiaoChen
 * @description: AUTO GENERATION
 * @date 2022/4/24 12:05
 */
public interface BookService {

    String save(Book book);

    void deleteById(Integer id);

    String update(@RequestBody Book book);

    Book findById(Integer id);

    //    查询所有用户
    Page findAll(Integer page, Integer size);
}
